package com.ny.until;

import java.sql.Connection;
import java.sql.SQLException;

public class SqlConnection {
    private static String URL = "jdbc:mysql://localhost:3306/usersDb";
    private static String USER = "root";
    private static String PASSWORD = "123456";
    public static Connection getConnection() throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.jdbc.Driver");
        return java.sql.DriverManager.getConnection(URL, USER, PASSWORD);
    }
}
